package com.myspring.sample.lookup;

public class Car {
 
    private String name;
 
    public Car(String name) {
        this.name = name;
    }
 
    //输出对象的name和hashcode
    @Override
    public String toString() {
        return "Car{" +
                "name='" + name + '\'' +
                "hashCode='" + this.hashCode() + '\'' +
                '}';
    }
 
}